package com.wmh.baseservice.operationaid.pojo.vo.filterTemplate;


import com.wmh.baseservice.operationaid.enums.FilterTemplateType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 谢骏
 * @date 2023/8/28 17:11
 * 添加过滤模板请求体
 **/
@Data
@Accessors(chain = true)
@ApiModel("过滤模板请求体")
public class FilterTemplateCommitReqVO {

    @ApiModelProperty("模板编号")
    private Long templateId;

    @ApiModelProperty("模板名称")
    @NotBlank(message = "模板名称未填写")
    @Length(min = 2, max = 20,message = "名称长度因在 2~20 个字符之间")
    private String templateName;

    @ApiModelProperty("模板参数列表(json)")
    @NotBlank(message = "未提交参数模板")
    @Length(min = 3,message = "未提交参数模板")
    private String paramList;

    @ApiModelProperty("模板类型")
    @NotNull(message = "未提交模板类型")
    private FilterTemplateType type;
}
